using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevProcessimgroupTList, table list:dev_processimgroup_t 
	/// </summary>
	internal class DevProcessimgroupTList : BaseWritableEntities<DevProcessimgroupT>, IDevProcessimgroupTList
	{
		private DevProcessimgroupTQueryDAO _queryDAO;
		private DevProcessimgroupTWritingDAO _writeDAO;

		public DevProcessimgroupTList(DevProcessimgroupTQueryDAO queryDao, DevProcessimgroupTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevProcessimgroupT,table items:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessimgroupT> GetDevProcessimgroupTAllItems()
		{
			return _queryDAO.GetDevProcessimgroupTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevProcessimgroupT,table items:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessimgroupT> GetDevProcessimgroupTItemsById(int id)
		{
			return _queryDAO.GetDevProcessimgroupTItemsById(id);
		}

		/// <summary>
		/// 增加一行DevProcessimgroupT,table item:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevProcessimgroupT(DevProcessimgroupT item)
		{
			return this._writeDAO.AddDevProcessimgroupT(item);
		}

		/// <summary>
		/// 增加多行DevProcessimgroupT,table items:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevProcessimgroupTs(DevProcessimgroupT[] items)
		{
			return this._writeDAO.AddDevProcessimgroupTs(items);
		}

		/// <summary>
		/// 更新一行DevProcessimgroupT,table item:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevProcessimgroupT(DevProcessimgroupT item)
		{
			return this._writeDAO.UpdateDevProcessimgroupT(item);
		}

		/// <summary>
		///  更新多行DevProcessimgroupT,table items:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevProcessimgroupTs(DevProcessimgroupT[] items)
		{
			return this._writeDAO.UpdateDevProcessimgroupTs(items);
		}

		/// <summary>
		/// 删除一行DevProcessimgroupT,table item:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessimgroupT(DevProcessimgroupT item)
		{
			return this._writeDAO.DeleteDevProcessimgroupT(item);
		}

		/// <summary>
		///  删除多行DevProcessimgroupT,table items:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessimgroupTs(DevProcessimgroupT[] items)
		{
			return this._writeDAO.DeleteDevProcessimgroupTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevProcessimgroupT,table entity:dev_processimgroup_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessimgroupTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevProcessimgroupTByIds(ids);
		}

	}
}
